package com.springinaction.knights;

import java.io.PrintStream;

public class SlayDragonQuest implements Quest{
    private PrintStream stream;

    public SlayDragonQuest(PrintStream printStream){
        this.stream = printStream;
    }

    public void embark(){
        System.out.println("embark");

        stream.println("Embarking on quest to slay the dragon!");
    }
}
